﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BDShop.Business.Cache;

namespace BDShop.Models
{
    public class SEOModels
    {
        public string siteName { get; set; }
        public string htmlTitle { get; set; }
        public string htmlDescription { get; set; }
        public string htmlKeywords { get; set; }

        public SEOModels()
        {
            htmlTitle = ConfigCache.Instance.Get().Where(c => c.Key == "htmlTitle").FirstOrDefault().Value;
            htmlDescription = ConfigCache.Instance.Get().Where(c => c.Key == "htmlDescription").FirstOrDefault().Value;
            htmlKeywords = ConfigCache.Instance.Get().Where(c => c.Key == "htmlKeywords").FirstOrDefault().Value;
            siteName = ConfigCache.Instance.Get().Where(c => c.Key == "SiteName").FirstOrDefault().Value;
        }
    }
}